// home模块的api
import request from '@/utils/request'

/** 获取轮播图数据 */
export function getBannerListApi () {
  return request('/home/banner', 'get', {})
}

/** 获取新鲜好物商品数据 */
export const getNewGoodsApi = () => {
  return request('/home/new', 'get', {})
}

/** 获取人气推荐商品 */
export const popularHotApi = () => {
  return request('/home/hot', 'get', {})
}

/** 获取热门品牌 */
export const getBrandApi = (limit) => {
  return request('/home/brand', 'get', {
    limit
  })
}
